#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
const int N = 1e6 + 10, M = 1e5;
int primes[M], cnt;
bool st[N];
int n;
void get_primes(int n)
{
    for (int i = 2; i <= n; i++)
    {
        if (!st[i]) primes[cnt++] = i;
        for (int j = 0; primes[j] <= n / i; j++)
        {
            st[primes[j] * i] = true;
            if (i % primes[j] == 0) break;
        }
    }
}
int main()
{
    get_primes(N - 1);
    while ((cin >> n, n))
    {
        for (int i = 1; i < cnt; i++)
        {
            int a = n - primes[i];
            if (!st[a])
            {
                printf("%d = %d + %d\n", n, primes[i], a);
                break;
            }
        }
    }
    return 0;
}